﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.OA.WorkflowTemplate.WorkflowTemplateStepFormCategory
{
	/// <summary>
	/// 工作流模板步骤表单分类
	/// </summary>
	public class WorkflowTemplateStepFormCategoryRequestDto
	{
		/// <summary>
		/// 表单分类Code
		/// </summary>		
		[Display(Name = "表单分类Code")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string FormCategoryCode { get; set; }
		/// <summary>
		/// 表单分类名称
		/// </summary>		
		[Display(Name = "表单分类名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(30, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string FormCategoryName { get; set; }
	}
}

